﻿using UnityEngine;
using System.Collections;

public class UnitHeadState : MonoBehaviour
{
    public void  SetHeadAnim()
    {
        int iBodyAnimID     =   transform.parent.parent.GetComponent<Animator>().GetInteger("iAnimID");

        GetComponent<Animator>().SetInteger("iAnimID", iBodyAnimID);
    }
}
